#+TITLE: Simplify By Decoration
#+LAYOUT: post
#+TAGS: TIL git omz

For those of you who frequently navigate through branches and tags in your git
repositories, you may find the =--simplify-by-decoration= option of the =git log=
command very helpful. This option allows you to condense the log output to show
just the commits that are branch tips or tags, making it easier to get a
high-level overview of the commit history.

If you're using the [[https://ohmyz.sh/][Oh My Zsh]] [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git][git plugin]], you might already be familiar with the
=glola= alias:

#+begin_src zsh
alias glola='git log --graph --pretty="%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset" --all'
#+end_src


To extend the functionality of =glola= and include the branch and tag decoration
simplification, here is my new alias:

#+begin_src zsh
alias glolas="glola --simplify-by-decoration"
#+end_src

With this alias, you can quickly see a decorated and simplified view of your git
commit history, focusing only on the major points like branches and tags.
